import request from '@/utils/request'

// 查询耗材表列表
export function listSupplies(query) {
  return request({
    url: '/service/supplies/list',
    method: 'get',
    params: query
  })
}

// 查询耗材表详细
export function getSupplies(suppliesId) {
  return request({
    url: '/service/supplies/' + suppliesId,
    method: 'get'
  })
}

// 新增耗材表
export function addSupplies(data) {
  return request({
    url: '/service/supplies',
    method: 'post',
    data: data
  })
}

// 修改耗材表
export function updateSupplies(data) {
  return request({
    url: '/service/supplies',
    method: 'put',
    data: data
  })
}

// 删除耗材表
export function delSupplies(suppliesId) {
  return request({
    url: '/service/supplies/' + suppliesId,
    method: 'delete'
  })
}
